﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HarveyNash.RefactoringAndCodeSmell.Refactoring.ReplaceMagicNumberWithSymbolicConstant
{
    public class After
    {
        private readonly int EXCEL_MAX_NUMBER_OF_ROWS = 65536;

        public bool ExportToExcel(TestResult[] results)
        {
            if (results.Length > EXCEL_MAX_NUMBER_OF_ROWS)
                return false;

            //export code goes here
            //...

            return true;
        }
    }
}
